<!DOCTYPE html>
<html>
<#include "../../include/resource.html">
<body>
	<#assign nid="member"> 
	<#include "../../common/function.html"> 
	<#include "../../include/header.html">
	 
	<!-- #main start-->
	<div id="main" class="clearfix" >
		<!-- .wrap950 开始-->
		<div class="wrap950 ">
			<!--左边的导航user_left 开始-->
			<div class="user_left">
				<#assign mid="m_member" >
				<#include "../user_menu.html">
			</div>
			<!--左边的导航user_left 结束-->
			<!--右边的内容user_right 开始-->
			<div class="user_right">
				<!--右边的内容user_right_main 开始-->
				<div class="user_right_main">
					<div class="user_main_title well" style="height:25px; padding-top:3px;"> 
						<input type="text" name="name" id="name" value="请输入理财宝名" data-value="请输入理财宝名" class="search-value">
						<input value="搜索" type="submit" class="btn-action" onClick="sousuo();" /> 
					</div>	
					<!-- 内容开始 -->
					<form action="" method="post">
						<table  border="0"  cellspacing="1" class="table table-striped  table-condensed" >
							<tr class="header">
		                            <tr class="header">
			                            <td>理财宝名</td>
			                            <td>用户名称</td>
			                            <td>理财宝总额</td>
			                            <td>已投资总额</td>
			                            <td>天利率</td>
			                            <td>生息间隔时间</td>
			                            <td>单人最多投资额度</td>
			                            <td>单笔最高投资额度</td>
			                            <td>单笔最低投资额度</td>
			                            <td width="10%">操作</td>
			                        </tr>
			                        <#if (itemList?exists)&&(itemList?size>0)>
			                    	<#list itemList as item>
			                        <tr class="s">
			                        	<td>${item.name!"-"}</td>
			                            <td>${item.username!"-"}</td>
			                            <td><#if item.account == 0>无限制<#else>${item.account?c}元</#if></td>
			                            <td>${item.invest?c}元</td>
			                            <td>${item.apr}%</td>
			                            <td><#if item.interest_time == 0>即时生息<#else>${item.interest_time?c}天后</#if></td>
			                            <td><#if item.most_account == 0>无限制<#else>${item.most_account?c}元</#if></td>
			                            <td><#if item.max_account == 0>无限制<#else>${item.max_account?c}元</#if></td>
			                            <td><#if item.min_account == 0>无限制<#else>${item.min_account?c}元</#if></td>
			                            <td><a title="投资理财宝" href="/treasure/detail.html?id=${(item.id!)?c}">投资理财宝</a></td>
			                        </tr>
			                    </#list><#else><tr><td colspan="12">无符合条件信息！</td></tr>
			                    </#if>
							<tr>
								<td colspan="11" class="page">
									<div align="center">
										<#import "../../common/page.html" as pager>  
			         	 				<@pager.pagination page=page url="/treasure/list.html" map=params style="style1"  />
		         	 				</div>  
								</td>
							</tr>
						</table>
					</form>	
					<!-- 内容结束 -->
				</div>
				<!--右边的内容user_right_main 结束-->
			</div>
			<!--右边的内容user_right 结束-->
		</div>
		<!-- .wrap950 结束-->
	</div>
	<!-- #main start-->
	<script>
	function sousuo(){
		var url = "${webroot}/treasure/list.html?search=true";
		var name = jQuery("#name").val();
		if (name!=null){
			url += "&name="+name;
		}
		location.href = url;
	}

	</script>
	<#include "../../include/footer.html">